package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the supplierman database table.
 * 
 */
@Entity
@NamedQuery(name="Supplierman.findAll", query="SELECT s FROM Supplierman s")
public class Supplierman implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int supid;

	private String phone;

	private String remark;

	private String smname;

	//bi-directional many-to-one association to Supplier
	@ManyToOne
	@JoinColumn(name="supno")
	private Supplier supplier;

	public Supplierman() {
	}

	public int getSupid() {
		return this.supid;
	}

	public void setSupid(int supid) {
		this.supid = supid;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getSmname() {
		return this.smname;
	}

	public void setSmname(String smname) {
		this.smname = smname;
	}

	public Supplier getSupplier() {
		return this.supplier;
	}

	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}

}